<?php
include_once APPLICATION_PATH.DIRECTORY_SEPARATOR.'models'.DIRECTORY_SEPARATOR.'Users.php';

class UsersController extends Zend_Controller_Action
{
  public function init()
  {
  }

  public function indexAction()
  {
    $users = new Users();    
    $this->view->assign('users', $users->fetchAll());
  }

  public function viewAction() 
  {
    $id   = $this->_getParam('id');
    $user = new Users();
    $user->find($id);
    $this->view->assign('user', $user);
  }  
  
}

?>